﻿<?xml version="1.0" encoding="utf-8"?>
<Window
	x:Class="ICSharpCode.AvalonEdit.AddIn.ChooseEncodingDialog" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:core="http://icsharpcode.net/sharpdevelop/core" xmlns:widgets="http://icsharpcode.net/sharpdevelop/widgets"
	Title="{core:Localize Dialog.Options.IDEOptions.TextEditor.General.FontGroupBox.FileEncodingGroupBox}"
	Width="335"
	SizeToContent="Height"
	ResizeMode="NoResize"
	WindowStartupLocation="CenterOwner"
	Style="{x:Static core:GlobalStyles.DialogWindowStyle}">
	<StackPanel>
		<Label
			Margin="8"
			Content="{core:Localize Dialog.Options.IDEOptions.TextEditor.General.FontGroupBox.FileEncodingLabel}" />
		<ComboBox
			Name="encodingComboBox"
			Margin="16,0,8,8">
			<ComboBox.ItemTemplate>
				<DataTemplate>
					<TextBlock Text="{Binding DisplayName}"/>
				</DataTemplate>
			</ComboBox.ItemTemplate>
		</ComboBox>
		<widgets:UniformGridWithSpacing
			Columns="2"
			Margin="4,4,10,10"
			HorizontalAlignment="Right">
			<Button
				Content="{core:Localize Global.OKButtonText}"
				Style="{x:Static core:GlobalStyles.ButtonStyle}"
				IsDefault="True"
				Click="okButton_Click" />
			<Button
				Content="{core:Localize Global.CancelButtonText}"
				Style="{x:Static core:GlobalStyles.ButtonStyle}"
				IsCancel="True" />
		</widgets:UniformGridWithSpacing>
	</StackPanel>
</Window>